package com.example.album;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, String> {
    User findByUserId(String userId);
    User findByUserIdAndPassword(String userId, String password);
    User save(User user);
    User findByPhoneNumberAndPassword(String phoneNumber, String password);
}

